import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm'

@Entity('order_desc', { schema: 'itemall' })
export class OrderDesc {
  @PrimaryGeneratedColumn({ type: 'int', name: 'id', comment: '详情信息id' })
  id: number

  @Column('varchar', { name: 'oid', length: 255, comment: '订单id' })
  oid: string

  @Column('varchar', { name: 'title', length: 255, comment: '商品标题' })
  title: string

  @Column({ type: 'simple-json', name: 'show', comment: '商品图片' })
  show: string

  @Column('int', { name: 'num', comment: '数量' })
  num: number

  @Column('double', { name: 'price', nullable: true, precision: 22 })
  price: number | null
}
